<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="https://unpkg.com/vue@next"></script>

    <div id="app">

    </div>

    <script>
        const myMixin = {
            created(){
                this.hello()
            },
            methods:{
                hello(){
                    console.log('hello from mixinxx!')
                }
            }
        }

        const vueOpt = {
            data(){
                return {

                }
            },
            mixins: [myMixin],
            template: `
                <div>111</div>
            `
        }
        const app  = Vue.createApp(vueOpt);
        app.mount('#app');
    </script>
</body>
</html>